// Copyright (c) 2025, 大连理工大学 (Dalian University of Technology)
//
// Licensed under the Mulan PSL v2.
// You can use this file according to the terms and conditions of the Mulan PSL v2.
// You may obtain a copy of the License at
//
//     http://license.coscl.org.cn/MulanPSL2
//
// THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
// EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. SEE THE MULAN PSL v2
// FOR MORE DETAILS.

/*
 * @Author: qiulin 1746365080@qq.com
 * @Date: 2024-11-05 13:38:53
 * @LastEditors: qiulin_JXGM ql1746365080@gmail.com
 * @LastEditTime: 2024-12-06 20:43:27
 * @FilePath: /SGSim/DBManager/Repository/HDF5/Input/Load/QBDY3Repository.cpp
 */

#include "DBManager/Repository/HDF5/Input/Load/QBDY3Repository.h"

#include "DBManager/Repository/HDF5/Base/HDF5RepositoryMacro.h"

HDF5_REG_REPOSITORY (QBDY3Repository)

using namespace SG::DBManager::HDF5;
using namespace SG::DataStructure::FEM;

// 构造函数实现
QBDY3Repository::QBDY3Repository (HDF5Database& database) : SG::DBManager::HDF5::SingleSetRepositoryBase<QBDY3Data> (database)
{}

void QBDY3Repository::InitialDatasetInfo ()
{
    RegisterIndex ("/OWN/INDEX/INPUT/LOAD/QBDY3", IndexDataset, GetType ());
    RegisterTableInfo<QBDY3Data> ("/SG/INPUT/LOAD/QBDY3", MainDataset);
    GetDatabase ().GetHDF5Hub()->m_loadSummarySignal.connect ([this] { Sort (); });
}